<script>
	import {
		houseArea
	} from '@/api/api.js';

	export default {
		onLaunch: function() {

		},
		onLoad() {
			console.log("idFlag", uni.getStorageSync('idFlag'))
			if (uni.getStorageSync('idFlag')) {
				uni.reLaunch({
					url: "/pages/client/home/index"
				})
			} else {
				if (uni.getStorageSync('token')) {
					uni.reLaunch({
						url: "/pages/transfer/receive/index"
					})
				} else {
					uni.reLaunch({
						url: "/pages/login/index"
					})
				}

			}
		},
		onShow: async function() {

		},
		onHide: function() {
			// console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	@import "uview-ui/index.scss";
	@import "./static/css/common.css";

	/*每个页面公共css */
	page {
		height: 100%;
		background: #F6F6F6;
	}
</style>